using UnityEngine;
using System.Collections;

public class Death : MonoBehaviour {

    GameObject m_Character;
	// Use this for initialization
	void Start () {
        m_Character = GameObject.FindGameObjectWithTag("Player");
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void OnTriggerEnter(Collider Col)
    {
        if (Col.collider == m_Character.collider)
        {
            //change the dead bool 
            m_Character.GetComponent<Pawn>().m_bDead = true;
        }
    }
}
